import ajaxAsync, { getUrlParamByKey } from 'vue-xiaobu-utils'

/**
 * 获取卡行程列表
 * @param {Number} pageIndex
 * @param {Number} pageSize
 */
function getRecordList(pageIndex, pageSize) {
  let cardno = getUrlParamByKey('cardno')
  console.log(cardno)
  let postData = {
    CARD_NO: cardno,
    PAGE_INDEX: pageIndex,
    PAGE_CAPACITY: pageSize
  }
  // return ajaxAsync('/posbill/unpaysuccess/list', postData)
  return ajaxAsync('/posbill/all/list', postData)
}
export { getRecordList }
